package cn.lsnu.common.log.entity;

import cn.lsnu.common.interfacetools.interfaceentity.BaseEntity;

import java.util.Date;

public class Log extends BaseEntity<Log> {
    private String id;

    private Date visitTime;

    private String userName;

    private String ip;

    private String url;

    private String method;

    private Long executionTime;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getVisitTime() {
        return visitTime;
    }

    public void setVisitTime(Date visitTime) {
        this.visitTime = visitTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getExecutionTime() {
        return executionTime;
    }

    public void setExecutionTime(Long executionTime) {
        this.executionTime = executionTime;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    @Override
    public String toString() {
        return "Log{" +
                "id='" + id + '\'' +
                ", visitTime=" + visitTime +
                ", userName='" + userName + '\'' +
                ", ip='" + ip + '\'' +
                ", url='" + url + '\'' +
                ", method='" + method + '\'' +
                ", executionTime=" + executionTime +
                '}';
    }
}
